import Vue from 'vue'
import App from './App.vue'


// 引入路由
import router from './router'
// 引入vuex
import store from './store'

// 引入重置样式
import "@/assets/css/index.scss"
// 引入适配器
import "lib-flexible/flexible";
// 引入iconfont
import "@/assets/iconfont/iconfont.css"

// 引入vant
// import 'vant/lib/button/style';
import { Button, Popup, Badge, Tag, Icon, Form, Field, Tab, Tabs, NoticeBar, Rate, Image as VanImage, Divider, Sidebar, SidebarItem, Card } from 'vant';
Vue.use(Button).use(Badge).use(Popup).use(Icon).use(Tag).use(Form).use(Field).use(Tab).use(Tabs).use(NoticeBar).use(Rate).use(Divider).use(VanImage).use(Sidebar).use(SidebarItem).use(Card);

// 引入全局过滤器
import * as filters from "@/filters"
Object.keys(filters).map(key => {
  Vue.filter(key, filters[key])
})

Vue.config.productionTip = false



new Vue({
  router,
  store,
  render: h => h(App),
}).$mount('#app')
